<%@ page language="java"  contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Get</title>

<script type="text/javascript">
	function send() {
		var xmlHttp = new XMLHttpRequest();
  		xmlHttp.onreadystatechange = function() {
			if(xmlHttp.readyState == 4 && xmlHttp.status == 200) {
				alert(xmlHttp.responseText);
			}
		};	  	
		xmlHttp.open("GET", "/ajaxTest/AjaxGetTestServlet", true);
		xmlHttp.send(null); 
	}
</script>
</head>
<body>
	<h1>这是一个Ajax的Get测试</h1><br/>
	<button id="btn1" onclick="send();">button1</button>
</body>
</html>